<template>
  <view class="pop-pic" @mousemove.stop="() => {}">
    <view class="pic">
      <b-image :src="src" mode="widthFix" @click="handleClick" />
      <image class="close-btn" src="/static/images/icon/icon_del.png" @click="closePop" />
    </view>
  </view>
</template>
<script>
export default {
  name: 'PopPic',
  props: {
    src: {
      type: String,
      default: ''
    }
  },
  methods: {
    handleClick() {
      this.$emit('popClick')
    },
    closePop() {
      this.$emit('popClose')
    }
  }
}
</script>
<style lang="scss">
.pop-pic{
  @include flex;
  @include center;
  background: rgba(0, 0, 0, 0.6);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  position: fixed;
  z-index: 999;

  .pic{
    width: 70%;
    max-width: 600rpx;
    position: relative;

    image{
      display: block;
    }

    .close-btn{
      width: 68rpx;
      height: 68rpx;
      left: 50%;
      margin-left: -34rpx;
      margin-top: 50rpx;

      position: absolute;
    }
  }
}
</style>
